package experiment9;

import java.io.*;

public class No_3 {
    public static void main(String []args) throws IOException {
        File file=new File(System.getProperty("user.dir")+File.separator+"Exercise9_1.dat");
        System.out.println(file.getPath());

        file.createNewFile();

        String random = "";
        for (int i=0;i<100;i++){
            random=random+" ";
            random=random+Math.random()*100;
        }

        OutputStream outputStream=new FileOutputStream(file);
        outputStream.write(random.getBytes());
    }
}
